home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form PExamples
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- Caption = "Percent Examples"
- ClientHeight = 4140
- ClientLeft = 2430
- ClientTop = 2940
- ClientWidth = 5565
- Height = 4545
- Left = 2370
- LinkTopic = "Form2"
- MDIChild = -1 'True
- ScaleHeight = 4140
- ScaleWidth = 5565
- Top = 2595
- Width = 5685
- Begin PRCNT Prcnt3
- AutoRedraw = -1 'True
- AVersion = 2.501
- BackColor = &H00C0C0C0&
- BarBorder = 0
- BarInner = 0
- BarOuter = 1
- BevelInner = 1 ' 1 - Raised
- BevelOuter = 2 ' 2 - Inset
- BevelWidth = 2
- BorderWidth = 2
- CaptionID = 0
- Captions = 0
- Direction = 1 ' 1 - Backward
- DisplayMode = 0 ' 0 - Linear
- FontID = 0
- Height = 2355
- Left = 4620
- Max = 100
- Min = 0
- MouseControl = -1 'True
- OffColor = &H00FFFF00&
- OnColor = &H000000C0&
- Orientation = 1 ' 1 - Vertical
- Percent = 50
- PercentColor = &H00000000&
- PercentFontID = 0
- PercentStyle = 0 ' 0 - On/Off Negative
- Shape = ""
- ShapeStyle = 0 ' 0 - Rectangle
- TabIndex = 3
- Top = 120
- Value = 50
- Width = 795
- ZLoad = PEXAMPLE.FRX:0000
- End
- Begin PRCNT Prcnt2
- AutoRedraw = -1 'True
- AVersion = 2.501
- BackColor = &H00C0C0C0&
- BarBorder = 0.05
- BarInner = 0.3
- BarOuter = 0.6
- BevelInner = 2 ' 2 - Inset
- BevelOuter = 1 ' 1 - Raised
- BevelWidth = 3
- BorderWidth = 1
- CaptionID = 1
- Captions = 2
- Direction = 0 ' 0 - Forward
- DisplayMode = 0 ' 0 - Linear
- FontID = 0
- Height = 1350
- Left = 300
- Max = 100
- Min = 0
- MouseControl = -1 'True
- OffColor = &H00FFFFFF&
- OnColor = &H006E0000&
- Orientation = 0 ' 0 - Horizontal
- Percent = 30
- PercentColor = &H00000000&
- PercentFontID = 0
- PercentStyle = 0 ' 0 - On/Off Negative
- Shape = ""
- ShapeStyle = 0 ' 0 - Rectangle
- TabIndex = 2
- Top = 2670
- Value = 30
- Width = 5220
- ZLoad = PEXAMPLE.FRX:003A
- End
- Begin PRCNT Prcnt1
- AutoRedraw = -1 'True
- AVersion = 2.501
- BackColor = &H00404000&
- BarBorder = 0.05
- BarInner = 0.1
- BarOuter = 0.9
- BevelInner = 2 ' 2 - Inset
- BevelOuter = 2 ' 2 - Inset
- BevelWidth = 2
- BorderWidth = 1
- CaptionID = 0
- Captions = 0
- Direction = 1 ' 1 - Backward
- DisplayMode = 1 ' 1 - Radial
- FontID = 0
- Height = 2460
- Index = 1
- Left = 270
- Max = 100
- Min = 0
- MouseControl = -1 'True
- OffColor = &H00FFFFFF&
- OnColor = &H006E0000&
- OnPicture = PEXAMPLE.FRX:0126
- Orientation = 1 ' 1 - Vertical
- Percent = 75
- PercentColor = &H00000000&
- PercentFontID = 0
- PercentStyle = 2 ' 2 - None
- Shape = ""
- ShapeStyle = 1 ' 1 - Ellipse
- TabIndex = 1
- Top = 60
- Value = 75
- Width = 2340
- ZLoad = PEXAMPLE.FRX:56F0
- End
- Begin PRCNT Prcnt1
- AutoRedraw = -1 'True
- AVersion = 2.501
- BackColor = &H00C0C0C0&
- BarBorder = 0.1
- BarInner = 0
- BarOuter = 1
- BevelInner = 0 ' 0 - None
- BevelOuter = 0 ' 0 - None
- BevelWidth = 2
- BorderWidth = 2
- CaptionID = 0
- Captions = 2
- Direction = 1 ' 1 - Backward
- DisplayMode = 0 ' 0 - Linear
- FontID = 0
- Height = 2460
- Index = 0
- Left = 2760
- Max = 100
- Min = 0
- MouseControl = -1 'True
- OffColor = &H00404040&
- OnColor = &H006E0000&
- Orientation = 1 ' 1 - Vertical
- Percent = 60
- PercentColor = &H00808080&
- PercentFontID = 0
- PercentStyle = 1 ' 1 - PercentColor
- Shape = ""
- ShapeStyle = 2 ' 2 - Tank
- TabIndex = 0
- Top = 60
- Value = 60
- Width = 1695
- ZLoad = PEXAMPLE.FRX:572A
- End
- Begin Timer Timer1
- Interval = 100
- Left = 90
- Top = 2790
- End
- Dim inittime As Integer
- Sub Form_Load ()
- Call initvar
- prcnt1(1).OnPicture = PBitmap.Image1(1).Picture
- Unload PBitmap
- prcnt2.CaptionID = 1
- prcnt2.Caption = "You have selected 4 files for downloading..."
- End Sub
- Sub initvar ()
- inittime = -20
- End Sub
- Sub Prcnt2_Change ()
- If prcnt2 = 100 Then
- text1 = "DownLoad Complete"
- ElseIf prcnt2 > 75 And prcnt2 < 100 Then
- text1 = "DownLoading Last File"
- ElseIf prcnt2 > 50 And prcnt2 < 76 Then
- text1 = "DownLoading Third File"
- ElseIf prcnt2 > 25 And prcnt2 < 51 Then
- text1 = "DownLoading Second File"
- ElseIf prcnt2 < 25 And prcnt2 > 0 Then
- text1 = "DownLoading First File"
- Else
- text1 = "You have selected 4 files for downloading..."
- End If
- End Sub
- Sub Timer1_Timer ()
- inittime = inittime + 1
- prcnt2 = inittime
- If inittime > 110 Then inittime = -20
- prcnt2.CaptionID = 0
- If prcnt2 = 100 Then
- prcnt2.CaptionID = 1
- prcnt2.Caption = "DownLoad Complete"
- ElseIf prcnt2 > 75 And prcnt2 < 100 Then
- prcnt2.Caption = "DownLoading File 4"
- ElseIf prcnt2 > 50 And prcnt2 < 76 Then
- prcnt2.Caption = "DownLoading File 3"
- ElseIf prcnt2 > 25 And prcnt2 < 51 Then
- prcnt2.Caption = "DownLoading File 2"
- ElseIf prcnt2 < 26 And prcnt2 > 0 Then
- prcnt2.Caption = "DownLoading File 1"
- Else
- prcnt2.CaptionID = 1
- prcnt2.Caption = "You have selected 4 files for downloading..."
- End If
- prcnt1(0) = prcnt1(0) + Rnd * 2 - 1
- prcnt1(1) = prcnt1(1) + Rnd * 2 - 1
- End Sub
-